﻿@using MvcRags.Examples.Models
@using MvcRags.Sorting
@model IEnumerable<Customer>


<table class="table table-bordered">
    <thead>
        <tr>
            <th>@Html.SortLinkFor(model => model.Id)</th>
            <th>@Html.SortLinkFor(model => model.Name)</th>
            <th>@Html.SortLinkFor(model => model.Country)</th>
            <th>@Html.SortLinkFor(model => model.Mail)</th>
            <th>@Html.SortLinkFor(model => model.Pvn)</th>
            <th>@Html.SortLinkFor(model => model.CreatedAt)</th>
        </tr>
    </thead>
    <tbody>
        @foreach (Customer item in Model)
        {
            <tr>
                <td>@item.Id</td>
                <td>@item.Name</td>
                <td>@item.Country</td>
                <td>@item.Mail</td>
                <td>@item.Pvn</td>
                <td>@item.CreatedAt</td>
            </tr>
        }
    </tbody>
</table>
